package KTV;

import KTV.KTV;

public class KTVText {
    public static void main(String[] args) {
        System.out.println("----------欢迎来到点歌系统------------");
        System.out.println("1.添加歌曲到列表");
        System.out.println("2.将歌曲置顶");
        System.out.println("3.将歌曲前移一位");
        System.out.println("4.查看歌曲列表");
        System.out.println("5.删除歌曲信息");
        System.out.println("6.退出系统");

        while (true){
            System.out.println("请输入指令(1~6):");
             int choice = KTV.scanner.nextInt();
            KTV.scanner.nextLine();

             switch (choice){
                 case 1:
                     KTV.addSong();
                     break;
                 case 2:
                     KTV.topsong();
                     break;
                 case 3:
                     KTV.moveupSong();
                     break;
                 case 4:
                     KTV.showSong();
                     break;
                 case 5:
                     KTV.deleteSong();
                     break;
                 case 6:
                     System.out.println("退出系统！");
                     return;
                 default:
                     System.out.println("指令无效，请重新输入！");
             }


        }
    }
}
